package com.test;

import com.examples.Car;

public class ModelS extends Car {
	 
	
	ModelS( )
	{
		
	}
	 
	public void applySpeed(int speedToIncrease) {
		System.out.println(" Car speed is increased by  "+speedToIncrease +"mph (From ModelS Class)-");
		this.currentSpeed += speedToIncrease;
		System.out.println(" Current Speed is - " + currentSpeed);
		
		 
		super.applySpeed();
	}
	
	public void applySpeed() {
		System.out.println(" Car speed is increased by  5 mph - From Car class");
		this.currentSpeed += 5;
		System.out.println(" Current Speed is - " + currentSpeed);
	}
 
	

	
}
